package com.wlm.process.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlm.model.process.Process;
import com.wlm.vo.process.ApprovalVo;
import com.wlm.vo.process.ProcessFormVo;
import com.wlm.vo.process.ProcessQueryVo;
import com.wlm.vo.process.ProcessVo;

import java.util.Map;

/**
 * <p>
 * 审批类型 服务类
 * </p>
 *
 * @author wlm
 * @since 2023-05-27
 */
public interface ProcessService extends IService<Process> {

    IPage<ProcessVo> selectPage(Page<ProcessVo> pageParam, ProcessQueryVo processQueryVo);


    void deployByZip(String deployPath);

    // 启动流程实例
    void startUp(ProcessFormVo processFormVo);

    /**
     * 查询待处理任务列表
     * @param pageParam
     * @return
     */
    IPage<ProcessVo> findPending(Page<Process> pageParam);

    Map<String, Object> show(Long id);

    /**
     * 审批
     * @param approvalVo
     */
    void approve(ApprovalVo approvalVo);

    IPage<ProcessVo> findProcessed(Page<java.lang.Process> pageParam);

    IPage<ProcessVo> findStarted(Page<ProcessVo> pageParam);
}
